package com.example.server.common.config.aliyun.sms;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DySmsConfig {

    public static String regionId;
    public static String endpoint;
    public static String product;
    public static String signName;
    public static String accessKeyId;
    public static String accessKeySecret;

    @Value("${aliyun.sms.regionId}")
    private void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    @Value("${aliyun.sms.endpoint}")
    private void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    @Value("${aliyun.sms.product}")
    private void setProduct(String product) {
        this.product = product;
    }

    @Value("${aliyun.sms.signName}")
    private void setSignName(String signName) {
        this.signName = signName;
    }

    @Value("${aliyun.sms.accessKeyId}")
    private void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    @Value("${aliyun.sms.accessKeySecret}")
    private void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

}
